* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
}

.container {
    position: relative;
    width: 240px;
    height: 400px;
    background: rgba(0, 0, 0, .1);
    transform: rotate(-30deg) skew(26deg) scale(0.8);
    transition: 0.5s;
}

.container div {
    position: absolute;
    width: 100%;
    height: 100%;
    background: black;
    transition: 0.5s;
}

.container:hover div:nth-child(1) {
    transform: translate(160px, -160px);
    /* background: red; */
    opacity: 1;
}

.container:hover div:nth-child(2) {
    transform: translate(120px, -120px);
    /* background: red; */
    opacity: 0.8;
}

.container:hover div:nth-child(3) {
    transform: translate(80px, -80px);
    /* background: red; */
    opacity: 0.6;
}

.container:hover div:nth-child(4) {
    transform: translate(40px, -40px);
    /* background: red; */
    opacity: 0.4;
}

.container:hover div:nth-child(5) {
    transform: translate(0px, 0px);
    /* background: red; */
    opacity: 0.2;
}